package com.xayy.health.mgt.model;

import cn.kawins.mybatis.base.BaseModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 质量分析报告
 * @author zhangxa
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "HEALTH.tb_data_quality_report")
@EqualsAndHashCode(callSuper = true)
public class DataQualityReport extends BaseModel<Long> {

    @Id
    @Column(name = "id")
    private Long id;

    @Column(name = "satellite_id")
    private Long satelliteId;

    @Column(name = "satellite_code")
    private String satelliteCode;

    @Column(name = "satellite_name")
    private String satelliteName;

    @Column(name = "content")
    @ApiModelProperty(value = "描述")
    private String content;

    @Column(name = "total")
    @ApiModelProperty(value = "累计次数")
    private Integer total;

    @Column(name = "yc_total")
    @ApiModelProperty(value = "异常次数")
    private Integer ycTotal;

    @Column(name = "dz_total")
    @ApiModelProperty(value = "丢帧次数")
    private Integer dzTotal;

    @Column(name = "fz_total")
    @ApiModelProperty(value = "复帧次数")
    private Integer fzTotal;

    @Column(name = "zd_total")
    @ApiModelProperty(value = "中断次数")
    private Integer zdTotal;

    @Column(name = "sbz_total")
    @ApiModelProperty(value = "识别字错误次数")
    private Integer sbzTotal;

    @Column(name = "availability")
    @ApiModelProperty(value = "完好率")
    private String availability;

    @Column(name = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @Column(name = "update_time")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @Override
    public Long idValue() {
        return id;
    }
}
